document.onclick = clickHandler;
var oldSelectLine = null;
function clickHandler() {
    var targetid,srcelement,targetelement;
    var strbuf;
    srcelement = window.event.srcElement;
    if(srcelement.className == "outline") {
        targetid = srcelement.id+"s";
        targetelement = document.all(targetid);
        if (targetelement != null) {
	        if (targetelement.style.display == "none") {
	            targetelement.style.display = '';
	            strbuf = srcelement.src;
	            if (strbuf.indexOf (noOpenImg)>-1) {
	                srcelement.src = openImg;
	            }
	        } else {
	            targetelement.style.display = "none";
	            strbuf = srcelement.src;
	            if (strbuf.indexOf (openImg)>-1) {
	                srcelement.src = noOpenImg;
	            }
	        }
        }
        if (oldSelectLine != null) oldSelectLine.className = "TableDetail2";
        oldSelectLine = document.all(srcelement.id + "TR");
        oldSelectLine.className = "selectLine";
        document.actForm.selectedIndexId.value = srcelement.id;
    }
}